﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Platformer
{
    class GameMenu
    {
        public static GameMenu Menu = new GameMenu();
        private List<GameButton> buttons;
        private GameMenu() 
        {
            buttons = new List<GameButton>();
            buttons.Add(new GameButton(Buttons.NewGameButton));
            buttons.Add(new GameButton(Buttons.LoadGameButton));
            buttons.Add(new GameButton(Buttons.SaveGameButton));
            buttons.Add(new GameButton(Buttons.ExitButton));
        }

        public void Init(Graphics g)
        {
            buttons[0].Draw(0, 0, g);
            buttons[1].Draw(0, 100, g);
            buttons[2].Draw(0, 200, g);
            buttons[3].Draw(0, 300, g);
        }

        public void newGame(Graphics g)
        {
            Core.Instance.Init(g);
        }

        public void loadGame(Graphics g)
        {
            Core.Instance.Init(g);
        }

        public void saveGame()
        {

        }

        public void closeGame()
        {
            MainForm.ActiveForm.Close();
        }
    }
}
